package net.maku.custom.biza.mapper.customers;

import com.baomidou.mybatisplus.core.metadata.IPage;
import net.maku.custom.biza.controller.customers.query.CustomerInfoQuery;
import net.maku.custom.biza.controller.customers.query.CustomerShipmentsQuery;
import net.maku.custom.biza.controller.customers.vo.CustomerHtmlResponseVO;
import net.maku.custom.biza.controller.customers.vo.CustomerInfoVO;
import net.maku.custom.biza.controller.customers.vo.CustomerShipmentsVo;
import net.maku.custom.biza.pojo.customs.CustomerInfoEntity;
import net.maku.framework.common.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 客户信息
*
* @author NULL
* @since 1.0.0 2022-07-11
*/
@Mapper
public interface CustomerInfoDao extends BaseDao<CustomerInfoEntity> {
    List<CustomerInfoVO> selectRelList(IPage<CustomerInfoEntity> page, @Param("query") CustomerInfoQuery query);

    CustomerInfoVO selectRelById(Long id);

    List<CustomerShipmentsVo> countCustomerShipments(@Param("query") CustomerShipmentsQuery query);

    List<CustomerHtmlResponseVO> selectHtml(Long id);

    List<CustomerInfoEntity> selectByCreator(@Param("creator") Long creator);

}